<?php

namespace app\model;

use app\BaseModel;
use think\model\relation\BelongsTo;

/**
 * 职业-分享
 */
class MetierShareModel extends BaseModel
{
    protected $name = 'metier_share';

    public function user(): BelongsTo
    {
        return $this->belongsTo(UserModel::class,'uid')->bind([
            'user_name' => 'name',
        ]);
    }
}